package com.xiaozhi.mapper;

import com.xiaozhi.entity.Discussion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 烟尘
 * @since 2023-03-15
 */
@Mapper
public interface DiscussionMapper extends BaseMapper<Discussion> {

    public Discussion getDisAndRep(@Param("id") int id);
    public List<Discussion> getAllByRecommend();
    public List<Discussion> getAllByTop();

    public List<Discussion> searchdis(@Param("text") String text);
}
